<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>EasyXPlus: EasyXPlus::PointArray Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">EasyXPlus
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">EasyXPlus is a simple graphic library for C++ BEGINNERS under Windows.</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>EasyXPlus</b></li><li class="navelem"><a class="el" href="class_easy_x_plus_1_1_point_array.html">PointArray</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_easy_x_plus_1_1_point_array-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">EasyXPlus::PointArray Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>A class holding some points.  
 <a href="class_easy_x_plus_1_1_point_array.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="easy_geometry_8h_source.html">easyGeometry.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a25231c2c1525383a8d91c4ffe103fe27"><td class="memItemLeft" align="right" valign="top"><a id="a25231c2c1525383a8d91c4ffe103fe27"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_easy_x_plus_1_1_point_array.html#a25231c2c1525383a8d91c4ffe103fe27">PointArray</a> (std::initializer_list&lt; <a class="el" href="class_easy_x_plus_1_1_point.html">Point</a> &gt; points)</td></tr>
<tr class="memdesc:a25231c2c1525383a8d91c4ffe103fe27"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a point array with the given points. <br /></td></tr>
<tr class="separator:a25231c2c1525383a8d91c4ffe103fe27"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader"></div></td></tr>
<tr class="memitem:a192cfee37e9fe84e5ab476ea9ec17e65"><td class="memItemLeft" align="right" valign="top"><a id="a192cfee37e9fe84e5ab476ea9ec17e65"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>isEmpty</b> () const</td></tr>
<tr class="separator:a192cfee37e9fe84e5ab476ea9ec17e65"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3c93c9400cf2fda1e8a30ccb2213f8ff"><td class="memItemLeft" align="right" valign="top"><a id="a3c93c9400cf2fda1e8a30ccb2213f8ff"></a>
unsigned&#160;</td><td class="memItemRight" valign="bottom"><b>getSize</b> () const</td></tr>
<tr class="separator:a3c93c9400cf2fda1e8a30ccb2213f8ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Point operations by index, index ranges from 0 to "size - 1".</div></td></tr>
<tr><td colspan="2"><div class="groupText"><p>If the index parameter is invalid(out of range), then these functions throw an exception. </p>
</div></td></tr>
<tr class="memitem:a2a89100505f2f25964028f51403c8398"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_easy_x_plus_1_1_point.html">Point</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_easy_x_plus_1_1_point_array.html#a2a89100505f2f25964028f51403c8398">getPoint</a> (unsigned index) const</td></tr>
<tr class="memdesc:a2a89100505f2f25964028f51403c8398"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the point with the given index.  <a href="#a2a89100505f2f25964028f51403c8398">More...</a><br /></td></tr>
<tr class="separator:a2a89100505f2f25964028f51403c8398"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a082e52fc020b3b85567926e2aa7d2782"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_easy_x_plus_1_1_point_array.html#a082e52fc020b3b85567926e2aa7d2782">appendPoint</a> (<a class="el" href="class_easy_x_plus_1_1_point.html">Point</a> point)</td></tr>
<tr class="memdesc:a082e52fc020b3b85567926e2aa7d2782"><td class="mdescLeft">&#160;</td><td class="mdescRight">Append the given point at the end of points.  <a href="#a082e52fc020b3b85567926e2aa7d2782">More...</a><br /></td></tr>
<tr class="separator:a082e52fc020b3b85567926e2aa7d2782"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a18cc765518e531a57c31b40775ddbb3b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_easy_x_plus_1_1_point_array.html#a18cc765518e531a57c31b40775ddbb3b">erasePoint</a> (unsigned index)</td></tr>
<tr class="memdesc:a18cc765518e531a57c31b40775ddbb3b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Erase a point with the given index.  <a href="#a18cc765518e531a57c31b40775ddbb3b">More...</a><br /></td></tr>
<tr class="separator:a18cc765518e531a57c31b40775ddbb3b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa5b050422a7ffb51bdb6ab9621978cf1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_easy_x_plus_1_1_point_array.html#aa5b050422a7ffb51bdb6ab9621978cf1">assignPoint</a> (unsigned index, <a class="el" href="class_easy_x_plus_1_1_point.html">Point</a> point)</td></tr>
<tr class="memdesc:aa5b050422a7ffb51bdb6ab9621978cf1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Assign the point with the given index to the new point.  <a href="#aa5b050422a7ffb51bdb6ab9621978cf1">More...</a><br /></td></tr>
<tr class="separator:aa5b050422a7ffb51bdb6ab9621978cf1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ff8cc0d5e301791dcb0ecdc77bbca67"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_easy_x_plus_1_1_point_array.html#a9ff8cc0d5e301791dcb0ecdc77bbca67">insertPoint</a> (unsigned indexBefore, <a class="el" href="class_easy_x_plus_1_1_point.html">Point</a> point)</td></tr>
<tr class="memdesc:a9ff8cc0d5e301791dcb0ecdc77bbca67"><td class="mdescLeft">&#160;</td><td class="mdescRight">Insert a point before the given index.  <a href="#a9ff8cc0d5e301791dcb0ecdc77bbca67">More...</a><br /></td></tr>
<tr class="separator:a9ff8cc0d5e301791dcb0ecdc77bbca67"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2ffe370bc4ceb5c11edba0fbb34a3d3e"><td class="memItemLeft" align="right" valign="top"><a id="a2ffe370bc4ceb5c11edba0fbb34a3d3e"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_easy_x_plus_1_1_point_array.html#a2ffe370bc4ceb5c11edba0fbb34a3d3e">clearAll</a> ()</td></tr>
<tr class="memdesc:a2ffe370bc4ceb5c11edba0fbb34a3d3e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clear all points. <br /></td></tr>
<tr class="separator:a2ffe370bc4ceb5c11edba0fbb34a3d3e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A class holding some points. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a082e52fc020b3b85567926e2aa7d2782"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a082e52fc020b3b85567926e2aa7d2782">&#9670;&nbsp;</a></span>appendPoint()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void EasyXPlus::PointArray::appendPoint </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_easy_x_plus_1_1_point.html">Point</a>&#160;</td>
          <td class="paramname"><em>point</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Append the given point at the end of points. </p>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="el" href="class_easy_x_plus_1_1_easy_except.html" title="The exception type used by EasyXPlus library. ">EasyExcept</a></td><td>If the index is out of range, it throws an exception. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aa5b050422a7ffb51bdb6ab9621978cf1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa5b050422a7ffb51bdb6ab9621978cf1">&#9670;&nbsp;</a></span>assignPoint()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void EasyXPlus::PointArray::assignPoint </td>
          <td>(</td>
          <td class="paramtype">unsigned&#160;</td>
          <td class="paramname"><em>index</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_easy_x_plus_1_1_point.html">Point</a>&#160;</td>
          <td class="paramname"><em>point</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Assign the point with the given index to the new point. </p>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="el" href="class_easy_x_plus_1_1_easy_except.html" title="The exception type used by EasyXPlus library. ">EasyExcept</a></td><td>If the index is out of range, it throws an exception. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a18cc765518e531a57c31b40775ddbb3b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a18cc765518e531a57c31b40775ddbb3b">&#9670;&nbsp;</a></span>erasePoint()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void EasyXPlus::PointArray::erasePoint </td>
          <td>(</td>
          <td class="paramtype">unsigned&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Erase a point with the given index. </p>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="el" href="class_easy_x_plus_1_1_easy_except.html" title="The exception type used by EasyXPlus library. ">EasyExcept</a></td><td>If the index is out of range, it throws an exception. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a2a89100505f2f25964028f51403c8398"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2a89100505f2f25964028f51403c8398">&#9670;&nbsp;</a></span>getPoint()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_easy_x_plus_1_1_point.html">Point</a> EasyXPlus::PointArray::getPoint </td>
          <td>(</td>
          <td class="paramtype">unsigned&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the point with the given index. </p>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="el" href="class_easy_x_plus_1_1_easy_except.html" title="The exception type used by EasyXPlus library. ">EasyExcept</a></td><td>If the index is out of range, it throws an exception. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a9ff8cc0d5e301791dcb0ecdc77bbca67"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9ff8cc0d5e301791dcb0ecdc77bbca67">&#9670;&nbsp;</a></span>insertPoint()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void EasyXPlus::PointArray::insertPoint </td>
          <td>(</td>
          <td class="paramtype">unsigned&#160;</td>
          <td class="paramname"><em>indexBefore</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_easy_x_plus_1_1_point.html">Point</a>&#160;</td>
          <td class="paramname"><em>point</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Insert a point before the given index. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">indexBefore</td><td>An index before which the new point is inserted. </td></tr>
    <tr><td class="paramname">point</td><td>A point. </td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="el" href="class_easy_x_plus_1_1_easy_except.html" title="The exception type used by EasyXPlus library. ">EasyExcept</a></td><td>If the index is out of range, it throws an exception. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="easy_geometry_8h_source.html">easyGeometry.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
